import axios from '@/libs/api.request'

// 人员类型列表
export const personnelTypeService = (param) => {
  return axios.request({
    url: '/api/ac/worker/personnelTypeService/findPersonnelTypeList',
    method: 'post',
    data: param
  })
}
// 添加人员属性
export const savePersonnelType = (param) => {
  return axios.request({
    url: '/api/ac/worker/personnelTypeService/savePersonnelType',
    method: 'post',
    data: param
  })
}
// 修改人员属性
export const updatePersonnelType = (param) => {
  return axios.request({
    url: '/api/ac/worker/personnelTypeService/updatePersonnelType',
    method: 'post',
    data: param
  })
}
// 删除人员属性
export const deletePersonnelType = (param) => {
  return axios.request({
    url: '/api/ac/worker/personnelTypeService/deletePersonnelType',
    method: 'post',
    data: param
  })
}
// 添加人员信息
export const saveCommunityPeople = (param) => {
  return axios.request({
    url: '/api/ac/worker/personnelManagementNewService/saveCommunityPeople',
    method: 'post',
    data: param
  })
}
// 添加人员信息
export const findPersonnelList = (param) => {
  return axios.request({
    url: '/api/as/worker/personnelManagementNew/findPersonnelList',
    method: 'post',
    data: param
  })
}
// 注销人员信息
export const findPersonneOutList = (param) => {
  return axios.request({
    url: '/api/as/worker/personnelManagementNew/findPersonnelOutList',
    method: 'post',
    data: param
  })
}
// 人员信息
export const getPersonnelInfo = (param) => {
  return axios.request({
    url: '/api/ac/worker/personnelManagementNewService/getPersonnelInfo',
    method: 'post',
    data: param
  })
}
// 人员信息
export const updatePersonnelInfo = (param) => {
  return axios.request({
    url: '/api/ac/worker/personnelManagementNewService/updatePersonnelInfo',
    method: 'post',
    data: param
  })
}
// 人员信息
export const saveInfo = (param) => {
  return axios.request({
    url: '/api/ac/worker/personnelManagementNewService/saveInfo',
    method: 'post',
    data: param
  })
}
// 删除人员信息
export const deleteDraft = (param) => {
  return axios.request({
    url: '/api/ac/worker/personnelManagementNewService/deleteDraft',
    method: 'post',
    data: param
  })
}
// 删除人员信息
export const updateLogOut = (param) => {
  return axios.request({
    url: '/api/ac/worker/personnelManagementNewService/updateLogOut',
    method: 'post',
    data: param
  })
}
// 删除人员信息
export const getQuotaInfo = (param) => {
  return axios.request({
    url: '/api/ac/worker/personnelManagementNewService/getQuotaInfo',
    method: 'post',
    data: param
  })
}
// 人员信息
export const findMyInitiateList = (param) => {
  return axios.request({
    url: '/api/as/worker/personnelMobilize/findMyInitiateList',
    method: 'post',
    data: param
  })
}
// 流程
export const findFlowList = (param) => {
  return axios.request({
    url: '/api/as/worker/personnelMobilize/findFlowList',
    method: 'post',
    data: param
  })
}
// 已办审批
export const myDoneList = (param) => {
  return axios.request({
    url: '/api/as/worker/personnelMobilize/myDoneList',
    method: 'post',
    data: param
  })
}
// 待办审批
export const myUpcomingList = (param) => {
  return axios.request({
    url: '/api/as/worker/personnelMobilize/myUpcomingList',
    method: 'post',
    data: param
  })
}
// 流程审批
export const updatePersonnelFlow = (param) => {
  return axios.request({
    url: '/api/ac/worker/personnelMobilizeService/updatePersonnelFlow',
    method: 'post',
    data: param
  })
}
// 流程审批
export const updateBatchInfo = (param) => {
  return axios.request({
    url: '/api/ac/worker/personnelMobilizeService/updateBatchInfo',
    method: 'post',
    data: param
  })
}
// 流程审批
export const updateWorkerMobilize = (param) => {
  return axios.request({
    url: '/api/ac/worker/personnelMobilizeService/updateWorkerMobilize',
    method: 'post',
    data: param
  })
}
// 不需要审批
export const updatePersonnelWorker = (param) => {
  return axios.request({
    url: '/api/ac/worker/personnelMobilizeService/updatePersonnelWorker',
    method: 'post',
    data: param
  })
}
export const getTypeList = (param) => {
  return axios.request({
    url: '/api/as/worker/personnelType/getTypeList',
    method: 'post',
    data: param
  })
}
